package main

import (
	"RabbiMQ/RabbiMQ"
	"fmt"
	"strconv"
	"time"
)

func main() {
	jinboboOne := RabbiMQ.NewRabbitMQRouting(
		"jinmengbo", "jinboboOne")
	jinboboTwo := RabbiMQ.NewRabbitMQRouting(
		"jinmengbo", "jinboboTwo")
	for i := 0; i <= 10; i++ {
		jinboboOne.PublishRouting("Hello luyan Love" + strconv.Itoa(i))
		jinboboTwo.PublishRouting("Hello luyan Love" + strconv.Itoa(i))
		time.Sleep(1 * time.Second)
		fmt.Println(i)
	}

}
